home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / GRAPH.SWG / 0002_BMP.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-04  |  3KB  |  57 lines

  1. --------I-BMP-------------------------------
  2.  
  3. The  BMP  files are the way, Windows  stores  bit mapped images. The BMP
  4. image  data is bit packed but every line  must end on a dword boundary -
  5. if  thats  not  the case, it must  be  padded with zeroes. BMP files are
  6. stored  bottom-up,  that  means that the  first  scan line is the bottom
  7. line.  The BMP format has four  incarnations, two under Windows (new and
  8. old) and two under OS/2, all are described here.
  9.  
  10. OFFSET              Count TYPE   Description
  11. 0000h                   2 char   ID='BM' - BitMap
  12.                                  OS/2 also supports the following IDs :
  13.                                  ID='BA' - Bitmap Array
  14.                                  ID='CI' - Color Icon
  15.                                  ID='CP' - Color Pointer (mouse cursor)
  16.                                  ID='IC' - Icon
  17.                                  ID='PT' - Pointer (mouse cursor)
  18. 0002h                   1 dword  Filesize of whole file
  19. 0006h                   4 byte   reserved
  20. 000Ah                   1 dword  Offset of bitmap in file
  21.                                  ="BOF"
  22. 000Eh                   1 dword  Length of BitMapInfoHeader
  23.                                  The BitMapInfoHeader starts directly after
  24.                                  this header.
  25.                                  12 - OS/2 1.x format
  26.                                  40 - Windows 3.x format
  27.                                  64 - OS/2 2.x format
  28. 0012h                   1 dword  Horizontal width of bitmap in pixels
  29. 0016h                   1 dword  Vertical width of bitmap in pixels
  30. 001Ah                   1 word   Number of planes
  31. 001Ch                   1 word   Bits per pixel ( thus the number of colors )
  32.                                  ="BPP"
  33. 001Eh                   1 dword  Compression type, see ALGRTHMS.txt for descrip-
  34.                                  tion of the different types
  35.                                  0 - none
  36.                                  1 - RLE 8-bit/Pixel
  37.                                  2 - RLE 4-bit/Pixel
  38. 0022h                   1 dword  Size of picture in bytes
  39. 0026h                   1 dword  Horizontal resolution
  40. 002Ah                   1 dword  Vertical resolution
  41. 002Ah                   1 dword  Number of used colors
  42. 002Ah                   1 dword  Number of important colors
  43. 0036h                   ? rec    Definition of N colors
  44.                                  N=1 shl "BPP"
  45.                         1 byte   Blue component
  46.                         1 byte   Green component
  47.                         1 byte   Red component
  48.                         1 byte   Filler
  49. "BOF"                   ? byte   Image data
  50. EXTENSION:BMP,RLE,LGO
  51. OCCURENCES:PC
  52. PROGRAMS:Windows,Paintbrush
  53. REFERENCE:DDJ0994
  54. VALIDATION:
  55. SEE ALSO:rDIB
  56.  
  57.